/*
 * MyTableModel.java
 *
 * Copyright 2011 Universidad Francisco de Paula Santander (UFPS).
 * Todos los Derechos Reservados.
 * Creado el 10/03/2011, 11:23:38 AM
 */

package com.ufps.cuatro.util.model;

import java.io.Serializable;
import javax.swing.table.AbstractTableModel;
import javax.swing.table.TableModel;

/**
 * <i><b>MyTableModel:</b></i> @DefinicionClase
 * @author Carlos A. Torres C. - Dolly E. Guerrero. <https://code.google.com/p/tesis4dor/>
 * @version 1.0 10/03/2011
 * @see AbstractTableModel
 * @see Serializable
 * @see TableModel
 */
public class MyTableModelDistribucionComponentes extends MyTableModelDefault/*MyTableModel*/ {
    private static final long serialVersionUID = 875227410783782538L;

    public MyTableModelDistribucionComponentes(String[] columnNames, Object[][] data, boolean[][] indicesNoEditables) {
        //super(columnNames, data, indicesNoEditables);
        super(data, columnNames);
    }

    public MyTableModelDistribucionComponentes(String[] columnNames, Object[][] data) {
        //super(columnNames, data);
        super(data, columnNames);
    }

    /*
     * Don't need to implement this method unless your table's
     * editable.
     */
    @Override
    public boolean isCellEditable(int row, int col) {
        //Note that the data/cell address is constant,
        //no matter where the cell appears onscreen.                
        //if(this.indicesNoEditables != null){
        //    return this.indicesNoEditables[row][col];
        //}
        return false;
    }
}
